<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>卖家-修改个人信息</title>
<link href="<?php echo $this->_webroot('/user/css/common.css'); ?>" rel="stylesheet" type="text/css" />
<link href="<?php echo $this->_webroot('/user/css/content1.css'); ?>" rel="stylesheet" type="text/css" />
<script src="<?php echo $this->_webroot('/user/js/jquery-1.7.1.min.js'); ?>" type="text/javascript"></script>
<script src="<?php echo $this->_webroot('/user/js/common.js'); ?>" type="text/javascript"></script>

</head>
<body>
<psp:tags     htmlname='user_topnav1'  iconname='usertopnav1' />
<psp:tags     htmlname='user_topsearch'  iconname='usertopsearch' />

<div class="main">
	<div class="main-left">
    	<div class="title">会员管理中心</div>
        <psp:tags     htmlname='user_menulist'  iconname='usermenulist' />
    </div>
    
    <div class="main-right">
    	<div class="tuikuan_title">
        	<span>保障金退款流程介绍</span>
        </div>
        <div class="tuikuan_info">
        	<div class="tuikuan_liu">待审批 > 已审批 > 退款中 > 退款成功</div>
            <p>待审批:退款申请已经提交，等待财务人员进行审批</p>
            <p>已审批:财务人员已经审批，等待支付</p>
            <p>退款中:爱搜货正在将退款支付给您收款账户所在的银行</p>
            <p>退款成功:款项已成功退回到您收款账户所在的银行，等待银行处理退款。请及时查询您的银行账户余额变动</p>
        </div>
        <div class="tuikuan_info_tishi">特别说明：如果您设置的银行账户信息有误，款项无法退还到您的账户上，会显示"退款失败"。请您核对账户信息后重新提交退款申请。</div>
        
        <div style="border-top: 2px solid #ADBADD;padding: 4px 2px 3px;"></div>
        
        <div class="tuikuan_list">
        	<table class="tuikuan_list_table">
            	<thead>
                	<tr>
                        <th width="315">服务名称</th>
                        <th width="90">币种</th>
                        <th width="100">金额</th>
                        <th width="240">使用时间</th>
                        <th width="100">操作</th>
                    </tr>
                </thead>
                <tbody>
			<?php if($ensure) { $k=1;
				foreach($ensure as $val) { $val =$val['ensure']; $k++;?>				
                	<tr class="tk_colorbg<?php if($k%2==0) { echo '1';}else {echo '2';}?>">
                    	<td><img src="<?php echo $val['picurl']?>" /><?php echo $val['name'];?></td>
                        <td><?php echo $val['moneytype']?></td>
                        <td><?php echo $val['money']?></td>
                        <td>
						<?php if( isset( $userensure[$val['id']]) && $userensure[$val['id']]['istui']==0 ) { ?>
						<?php echo $userensure[$val['id']]['addtime'];?>
						<?php }else if( isset( $userensure[$val['id']]) && $userensure[$val['id']]['istui']>0 ) { ?>
						正在申请退款...
						<?php }else { ?>
						未申请保障
						<?php } ?>
						</td>
                        <td>
						<?php if( isset( $userensure[$val['id']]) && $userensure[$val['id']]['istui']==0 ) { ?>
						<a href="<?php echo $this->_url('account/delensure/'.$val['id']);?>"  onclick="return confirm('申请保障服务退款会把保障金全额退款到您的账号上，确认要申请保障服务退款吗?');" class="tk_export" >退款</a>
						<?php }else if( isset( $userensure[$val['id']]) && $userensure[$val['id']]['istui']>0 ) { ?>
						<a href="<?php echo $this->_url('account/editensure/'.$val['id']);?>"  onclick="return confirm('确认要取消申请保障服务退款吗?');"  style="color: #5D90CA;" >取消退款</a>						
						<?php }else { ?>
						<a href="<?php echo $this->_url('account/doensure/'.$val['id']);?>"  onclick="return confirm('申请保障服务会扣取您的账号余额做为保障金，确认要申请保障服务吗?');" class="tk_export" >保障</a>
						<?php } ?>						    
						</td>
                    </tr>
				<?php }?>
			<?php }?>					

                </tbody>
            </table>
        </div>
        
    </div>
    <div class="clear"></div>
</div>


<div class="footer">
    <psp:tags     htmlname='user_footer_helper'  iconname='userfooterhelper' />

</div>
</body>
</html>